<?php
/**
 * Created by PhpStorm.
 * User: 王新宇
 * Date: 2021/11/9
 * Time: 15:19
 */

namespace app\admin\controller;

use app\admin\model\Brand;
use app\admin\model\Category;
use think\facade\Request;
use think\facade\View;


class Goods
{

   //品牌列表
    public function brand_list()
    {
        $where=[];
        $param=Request::param();
        View::assign($param);
        if(isset($param['keywords'])&&$param['keywords']<>'')
            $where['keywords']=$param['keywords'];
        if(isset($param['recommended'])&&$param['recommended']<>'')
            $where['recommended']=$param['recommended'];
        if(isset($param['if_show'])&&$param['if_show']<>'')
            $where['if_show']=$param['if_show'];

      $list=  Brand::getBrandList($where);
      View::assign('list',$list);
      return view();
    }
}